<?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// Ricardo Galli <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
// 		http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".

include_once('Smarty.class.php');
$main_smarty = new Smarty;

include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'ts.php');
include(mnminclude.'link.php');
include(mnminclude.'tags.php');
include(mnminclude.'search.php');
include(mnminclude.'smartyvariables.php');


// sidebar
$main_smarty = do_sidebar($main_smarty);

// pagename	
define('pagename', 'index'); 
$main_smarty->assign('pagename', pagename);

// get group to show in the index page
$sql = "";
$grps = $db->get_col($sql);
$indexgrp = new Group();
$reco_output = '';
if ($grps) {
	foreach($grps as $grp) {
	$indexgrp->id = $grp;
	$indexgrp->read();
	$grp_output .= $indexgrp->print_summary_doing($doing, 0, 'short', true);	
	}
}
$main_smarty->assign('grp_output', $grp_output);
// show the template
$main_smarty->assign('tpl_center', $the_template . '/index');
$main_smarty->display($the_template . '/pligg.tpl');
?>
